import { BaseComponents } from "../../common/base/BaseComponent"
import PageOneLogc from "./PageOneLogic"
import PageOneState from "./PageOneState"

const {ccclass} = cc._decorator
@ccclass
export default class PageOneView extends BaseComponents<PageOneState,PageOneLogc> {


    protected onEnable(): void {
        super.onEnable()
        this.state.watch("testText",(value)=> {
            cc.find("label",this.node).getComponent(cc.Label).string = value
        })
    }

}